package model

import "time"

type User struct {
	Uid         uint   `gorm:"primaryKey;autoIncrement"`
	Username    string `gorm:"unique"`
	Password    string `gorm:"not null"`
	Email       string `gorm:"unique"`
	LoginStatus uint   `gorm:"default:0"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func (User) TableName() string {
	return "user"
}
